<?php

class Add_Publish_Reply_SavePost_Validate_Misc extends Ext_Validate_Abstract
{
    protected $_destArticleId;
    
    public function __construct($destArticleId)
    {
        $this->_destArticleId = $destArticleId;
    }
    
    public function isValid()
    {
        $validatorChain = new Zend_Validate();
        $validatorChain
            ->addValidator(new Zend_Validate_NotEmpty(), true)
            ;
        
        if(!$validatorChain->isValid($this->_destArticleId)) {
            $this->addMessages('Access denied');
            return false;
        }
        
        return true;
    }
}
